<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>计算 1~11 乘法表</title>
</head>
<body>
<script>
    function writeTimesTable(number) {
        var writeString;
        for (var i = 1; i <= 12; i++) {
            writeString = i + ' * ' + number + ' = ';
            writeString += (number * i);
            writeString += '<br/>';
            document.write(writeString);
        }
    }

    for (var i = 1; i <= 12; i++) {
        document.write('<p>');
        writeTimesTable(i);
        document.write('</p>');
    }
</script>
</body>
</html>